runtime.m.locks (field)
47 uses
runtime (current package)
lock_spinbit.go#L157: if gp.m.locks < 0 {
lock_spinbit.go#L160: gp.m.locks++
lock_spinbit.go#L318: gp.m.locks--
lock_spinbit.go#L319: if gp.m.locks < 0 {
lock_spinbit.go#L322: if gp.m.locks == 0 && gp.preempt { // restore the preemption request in case we've cleared it in newstack
mgc.go#L649: if gp := getg(); gp == mp.g0 || mp.locks > 1 || mp.preemptoff != "" {
mgcmark.go#L447: if mp := getg().m; mp.locks > 0 || mp.preemptoff != "" {
mgcsweep.go#L363: gp.m.locks++
mgcsweep.go#L369: gp.m.locks--
mgcsweep.go#L447: gp.m.locks--
mgcsweep.go#L469: if gp.m.locks == 0 && gp.m.mallocing == 0 && gp != gp.m.g0 {
mgcsweep.go#L508: if gp.m.locks == 0 && gp.m.mallocing == 0 && gp != gp.m.g0 {
mprof.go#L756: if gp := getg(); gp.m.locks == 1 && gp.m.mLockProfile.haveStack {
panic.go#L765: if gp.m.locks != 0 {
panic.go#L1367: if gp.m.locks < 0 {
panic.go#L1368: gp.m.locks = 1
panic.go#L1478: if mp.locks != 1 || mp.mallocing != 0 || mp.throwing != throwTypeNone || mp.preemptoff != "" || mp.dying != 0 {
preempt.go#L288: return mp.locks == 0 && mp.mallocing == 0 && mp.preemptoff == "" && mp.p.ptr().status == _Prunning
print.go#L67: mp.locks++ // do not reschedule between printlock++ and lock(&debuglock).
print.go#L72: mp.locks-- // now we know debuglock is held and holding up mp.locks for us.
proc.go#L1648: if gp.m.locks > 0 {
proc.go#L3000: if gp.m.locks != 0 {
proc.go#L4126: if mp.locks != 0 {
proc.go#L4580: gp.m.locks++
proc.go#L4646: gp.m.locks--
proc.go#L4727: gp.m.locks++ // see comment in entersyscall
proc.go#L4769: gp.m.locks--
proc.go#L4804: gp.m.locks++ // see comment in entersyscall
proc.go#L4852: gp.m.locks--
proc.go#L4870: gp.m.locks--
proc.go#L5034: gp.m.locks++
proc.go#L5065: gp.m.locks--
proc.go#L5721: gp.m.locks++
proc.go#L5745: gp.m.locks--
proc.go#L6593: print(" mallocing=", mp.mallocing, " throwing=", mp.throwing, " preemptoff=", mp.preemptoff, " locks=", mp.locks, " dying=", mp.dying, " spinning=", mp.spinning, " blocked=", mp.blocked, " lockedg=")
proc.go#L7456: mp.locks++
proc.go#L7474: gp.m.locks--
rand.go#L176: mp.locks++ // hold m even though c.Refill may do stack split checks
rand.go#L178: mp.locks--
runtime1.go#L630: gp.m.locks++
runtime1.go#L637: mp.locks--
runtime1.go#L638: if mp.locks == 0 && gp.preempt {
runtime2.go#L553: locks int32
sema.go#L264: if s.ticket == 1 && getg().m.locks == 0 && getg() != getg().m.g0 {
stack.go#L1107: if thisg.m.p == 0 && thisg.m.locks == 0 {
vgetrandom_linux.go#L111: mp.locks++
vgetrandom_linux.go#L113: mp.locks--